<template>
  <div class="web-conclusion-detail">
    <h2 class="title w-text-center">{{ studyModel.title }}</h2>
    <p class="date w-text-center">{{ studyModel.dateStr }}</p>
    <p class="description w-text-center">{{ studyModel.describe }}</p>
    <!--marked 解析-->
    <w-marked-parsing :datastr="studyModel.content"/>
  </div>
</template>

<script>
import StudyModel from '@/models/web/StudyModel'
import WMarkedParsing from '@/components/global/marked/parsing'
export default {
  name: 'WebConclusionDetail',
  components: {
    WMarkedParsing
  },
  data() {
    return {
      studyModel: new StudyModel()
    }
  },
  mounted() {
    this.studyModel._id = this.$route.query.id
    this.findOne()
  },
  methods: {
    // 获取单个数据
    findOne() {
      this.studyModel.getDetail().then(() => {
      }).catch(() => {})
    }
  }
}
</script>

<style lang="scss" scoped>

  .web-conclusion-detail {
    padding: 20px;
    >.date {
      color: #999;
    }
    >.description {
      color: #666;
      line-height: 24px;
    }
  }

</style>
